package han.bifang.common.entity;
import java.io.Serializable;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/**
 * The persistent class for the SOA_VERSION_SCHEMA database table.
 * 
 * @author BEA Workshop
 */
public class SoaVersionSchema  implements Serializable {
	//default serial version id, required for serializable classes.
	private static final long serialVersionUID = 1L;
	private String versionId;
	private String requestSchema;
	private String responseSchema;
	private String description;

    public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public SoaVersionSchema() {
    }

	public String getVersionId() {
		return this.versionId;
	}
	public void setVersionId(String versionId) {
		this.versionId = versionId;
	}

	public String getRequestSchema() {
		return this.requestSchema;
	}
	public void setRequestSchema(String requestSchema) {
		this.requestSchema = requestSchema;
	}

	public String getResponseSchema() {
		return this.responseSchema;
	}
	public void setResponseSchema(String responseSchema) {
		this.responseSchema = responseSchema;
	}

	public boolean equals(Object other) {
		if (this == other) {
			return true;
		}
		if (!(other instanceof SoaVersionSchema)) {
			return false;
		}
		SoaVersionSchema castOther = (SoaVersionSchema)other;
		return new EqualsBuilder()
			.append(this.getVersionId(), castOther.getVersionId())
			.isEquals();
    }
    
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getVersionId())
			.toHashCode();
    }   

	public String toString() {
		return new ToStringBuilder(this)
			.append("versionId", getVersionId())
			.toString();
	}
}